package com.dd.ms.provider.web;

import com.dd.ms.provider.web.service.rpc.DataObjectRpcServiceImpl;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/3/11 6:43
 * @Description 服务提供方
 */
@EnableDiscoveryClient
@SpringBootApplication
@ComponentScan(basePackages = {"com.dd.ms.provider.web"})
@MapperScan(basePackages = {"com.dd.ms.provider.web.mapper"})
@EnableDubbo(scanBasePackageClasses = DataObjectRpcServiceImpl.class)
public class Provider {
    public static void main(String[] args) {
        SpringApplication.run(Provider.class, args);
    }
}
